<template>
    <!-- 新闻页 -->
    <div class="news_item">
        <div class="news_time">
            {{time}}
        </div>
         <div class="news_title" v-for="item,index in titles" :key="index">
            <span>{{item}}</span>
        </div>
        <p class="news_content">
            {{content}}
        </p>
    </div>
</template>
<script>
export default{
    props:['time','titles','content']
}
</script>
<style scoped>
.news_item{
    padding: 2em;
    border-radius: 1em;
    cursor: pointer;
    margin-bottom: 2em;
}
.news_item:hover{
    box-shadow: 2px 2px 8px rgb(218, 218, 218);
}
.news_time{
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1em;
}
.news_title{
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.3em;
    font-size: 1.4em;
    font-weight: 800;
}
p{
    line-height: 1.8em;
    width: 80%;
    margin: 2em auto;
}
</style>
